package com.osremake.server.net;

import com.osremake.server.net.codec.LoginDecoder;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.channel.Channels;

/**
 * @author kyle
 */
public class ServerPipeline implements ChannelPipelineFactory {
    public ChannelPipeline getPipeline() throws Exception {
        ChannelPipeline pipeline = Channels.pipeline();
        pipeline.addLast("login", new LoginDecoder());
        return pipeline;
    }
}
